using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using flickr.api.communication;

namespace flickr.api
{
    [Serializable]
    public class PhotoCountInfo : FlickrObject
    {
        public PhotoCountInfo():base(){}
        public PhotoCountInfo(FlickrConnection connection) : base(connection){}
        
        [XmlAttribute("count", Form=XmlSchemaForm.Unqualified)]
        public int PhotoCount;
    
        [XmlIgnore()]
        public DateTime FromDate
        {
            get 
            {
                return Utilities.UnixTimestampToDate(fromdate);
            }
        }

        [XmlIgnore()]
        public DateTime ToDate
        {
            get 
            {
                return Utilities.UnixTimestampToDate(todate);
            }
        }

        [XmlAttribute("fromdate", Form=XmlSchemaForm.Unqualified)]
        public string fromdate;
    
        [XmlAttribute("todate", Form=XmlSchemaForm.Unqualified)]
        public string todate;
    }
}